#ifndef		BUFFER_HPP_
# define	BUFFER_HPP_

# include	<iostream>

class Buffer
{
  char		*Buf;
  int		BufferSize;
  int		AlreadyRead;
  
public:
  Buffer(char	*buf,
	 int	bufferSize,
	 int	alreadyRead);
  Buffer(const Buffer &other);
  ~Buffer();

  void		SetBufferSize(int	bufferSize);
  int		GetBufferSize(void) const;

  void		SetBuffer(char		*buf);
  char		*GetBuffer(void) const;

  void		SetAlreadyRead(int alreadyRead);
  int		GetAlreadyRead(void) const;
  Buffer &operator=(const Buffer &other);
};

#endif		/* BUFFER_HPP_ */
